import request from '@/utils/request'

// 查询优惠券领取记录列表（根据优惠券ID查询）
export function listCouponReceiveRecord(query) {
  return request({
    url: '/coupon/receiveRecord/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券领取记录详细
export function getCouponReceiveRecord(id) {
  return request({
    url: '/coupon/receiveRecord/' + id,
    method: 'get'
  })
}

// 新增优惠券领取记录
export function addCouponReceiveRecord(data) {
  return request({
    url: '/coupon/receiveRecord',
    method: 'post',
    data: data
  })
}

// 修改优惠券领取记录
export function updateCouponReceiveRecord(data) {
  return request({
    url: '/coupon/receiveRecord',
    method: 'put',
    data: data
  })
}

// 删除优惠券领取记录
export function delCouponReceiveRecord(id) {
  return request({
    url: '/coupon/receiveRecord/' + id,
    method: 'delete'
  })
}

// 导出优惠券领取记录
export function exportCouponReceiveRecord(query) {
  return request({
    url: '/coupon/receiveRecord/export',
    method: 'get',
    params: query
  })
} 